package org.crazyit.cloud.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {
	
	@Autowired
	private HelloClient helloClient;
	
	@RequestMapping(method=RequestMethod.GET,value="/hello")
	public String hello() {
		return helloClient.hello();
	}
	
}
